<?php

class Frontend_Ctr {

    public static function action_user_login($param) {
        $user_login = Frontend::findUserLogin($param["_email"], $param["_password"]);
        if (iterator_to_array($user_login)) {
            foreach ($user_login as $_data) {
                Session::set_session("fullname", $_data["fullname"]);
                Session::set_session("email", $_data["email"]);
                Session::set_session("user_id", $_data["_id"]);
            }
        } else {
            
        }
    }

}

?>
